import request from '../utils/request.js'
export default {
	namespaced:true,
	actions:{
		async getinfo(context){
			await request({
				url: "prod-api/system/ad-workOrder/list",
				method: "get",
			}).then((res)=>{
				if(res.code<300){
					console.log(res)
					context.commit("GETINFO",res.rows)				
					}
			})		
		}
	},
	mutations:{
		GETINFO(state,datalist){
			state.lists=datalist
		}
	},
	state:{
		lists:[]
	},
}